package study.intconsulting.client;

import study.intconsulting.services.RayService;

public class Start {

	private final static String REQUEST_MESSAGE = "who";
	
	public static void main(String[] args) {
		System.out.println("#############################");
		System.out.println("- Service Start...");
		System.out.println("- Reqeust Message : " + REQUEST_MESSAGE);
		
		long sTime = System.currentTimeMillis();
		
		Start start = new Start();
		start.requestService(REQUEST_MESSAGE);
		
		long eTime = System.currentTimeMillis();

		System.out.println("- Service End...");
		System.out.println("-----------------------------");
		System.out.println("- 소요시간:" + (eTime - sTime));
		System.out.println("#############################");
	}
	
	private void requestService(String message) {
		RayService service = new RayService();
		service.execute(message);
	}
	
}
